<?php 
/* SVN FILE: $Id$ */
/* Parentesco Test cases generated on: 2009-12-19 22:12:26 : 1261277366*/
App::import('Model', 'Parentesco');

class ParentescoTestCase extends CakeTestCase {
	var $Parentesco = null;
	var $fixtures = array('app.parentesco');

	function startTest() {
		$this->Parentesco =& ClassRegistry::init('Parentesco');
	}

	function testParentescoInstance() {
		$this->assertTrue(is_a($this->Parentesco, 'Parentesco'));
	}

	function testParentescoFind() {
		$this->Parentesco->recursive = -1;
		$results = $this->Parentesco->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Parentesco' => array(
			'persona_es'  => 1,
			'relacion_tipo'  => 1,
			'de_persona'  => 1,
			'vigencia'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>